package com.example.communitypro.mapper;
import com.example.communitypro.pojo.UserActions;
import com.example.communitypro.pojo.UserInformation;

import java.util.List;

public interface UserActionsMapper {
    int insertUserActions(UserActions userActions); //新增用户操作
    int delectUserActions(int user_action_no); //删除用户操作
    List<UserInformation> getUserFollow(int user_no,int user_action_type); //查找用户所有操作对象 √
    List<UserInformation> getFollowUser(int user_object_no,int user_action_type); //查找关注拉黑某用户的所有用户
    UserActions getUserAction(int user_no,int user_object_no,int user_action_type);
    UserActions getUserAction2(int user_no,int user_object_no);
    //0:拉黑 1:关注



    /**
     * 系统自动生成
     */
    int deleteByPrimaryKey(Integer userActionNo);

    int insert(UserActions record);

    int insertSelective(UserActions record);

    UserActions selectByPrimaryKey(Integer userActionNo);

    int updateByPrimaryKeySelective(UserActions record);

    int updateByPrimaryKey(UserActions record);
}
